#ifndef DOUBAN_FMRADIO_IPLAYERBACKEND_H
#define DOUBAN_FMRADIO_IPLAYERBACKEND_H
#include <QObject>
namespace Douban
{
	class IPlayerBackend : public QObject
	{
		Q_OBJECT
		public:
			IPlayerBackend(){};
			virtual ~IPlayerBackend(){};

			virtual void play(const QString& url) = 0;
			virtual void stop() = 0;
			virtual void setVolume(int vol) = 0;

			virtual bool isFunctional() = 0;

		signals:
			void playError();
			void playStart();
			void playComplete();
	};

} // namespace Douban

#endif // IPLAYERBACKEND_H
